package com.attendance.Utils.Converter;

import com.attendance.model.Form.DepartmentForm;
import com.attendance.model.Department;

/**
 * Created by OPTIPLEX on 2016/12/1.
 */
public class DepartmentConverter {

    public static Department convert(DepartmentForm departmentForm){
        Department department = new Department();
        department.setId(departmentForm.getId());
        department.setName(departmentForm.getName());
        department.setManager(departmentForm.getManager());
        department.setMemo(departmentForm.getMemo());
        return department;
    }
}
